<div id="search-container">
  <% form_for :query, @query, :url => { :action => action_name }, :html => {:id => "main_form", :method => :get} do |f| %>
    <p class="main-header">Поиск по каталогу</p>
    <div class="search-controls">
      <span class="forselect search-select">
        <%= f.select("price_id", @search.prices.collect {|p| [p.title, p.id] }, {:include_blank => 'Cтоимость за день'}, :class => "search-catalog-input") %>
      </span>
      <span class="forselect search-select">
        <%= f.select("location_id", @search.locations.collect {|p| [p.title, p.id] }, {:include_blank => 'Расположение'}, :class => "search-catalog-input") %>
      </span>
      <span class="forselect search-select">
        <%= f.select("number_id", @search.numbers.collect {|p| [p.title, p.id] }, {:include_blank => 'Количество комнат'}, :class => "search-catalog-input") %>
      </span>
      <span class="forselect search-select">
        <%= f.select("beach_id", @search.beaches.collect {|p| [p.title, p.id] }, {:include_blank => 'Пляж'}, :class => "search-catalog-input") %>
      </span>
      <span class="search-top-button">
        <input type="submit" id="submit-button-hidden" class="hidden" />
        <span>
          <img src="<%= image_path('search2.png') %>" onclick="var form = document.getElementById('submit-button-hidden'); form.click();" style="cursor: pointer;"/>
        </span>
      </span>
      <span class="search-comment">
      </span>
      <%= f.hidden_field :category_id, :value => params[:category_id] %>
    </div>
  <% end %>
</div>
<div class="custom-line"></div>
